package com.xx.controller;

import com.xx.service.FeignService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class FeignController {

    @Resource
    private FeignService feignService;

    @RequestMapping("/info1")
    public String info1() {
        return feignService.info1();
    }

    @RequestMapping("/info2")
    public String info2() {
        return feignService.info2();
    }
}
